package com.maibow.service.app;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

import com.maibow.entity.app.Food;

@Service("foodService")
public class FoodService{
    public List<Food> getFoodListByType(int typeId) {
        // 这里本来要调DAO层接口的，这边暂时写死

        Food food1 = new Food(1, 1, "鱼香肉丝", 12.00, "好吃的不得了-鱼香肉丝", 4.5, 5.0);
        Food food2 = new Food(2, 1, "农家小炒肉", 15.00, "好吃的不得了-农家小炒肉", 3.7, 4.3);
        Food food3 = new Food(3, 1, "韭菜炒蛋", 10.00, "好吃的不得了-韭菜炒蛋", 2.6, 3.0);
        Food food4 = new Food(4, 1, "回锅肉", 13.00, "好吃的不得了-回锅肉", 3.1, 3.8);
        Food food5 = new Food(5, 1, "宫保鸡丁", 14.00, "好吃的不得了-宫保鸡丁", 3.7, 5.0);
        Food food6 = new Food(6, 1, "苦瓜炒蛋", 9.00, "好吃的不得了-宫保鸡丁", 4.9, 4.7);
        Food food7 = new Food(7, 1, "莴笋肉片", 10.00, "好吃的不得了-莴笋肉片", 2.6, 3.9);

        List<Food> list = new ArrayList<Food>();
        list.add(food1);
        list.add(food2);
        list.add(food3);
        list.add(food4);
        list.add(food5);
        list.add(food6);
        list.add(food7);
        return list;
    }

}